export default [
    {
        path: '/',
        name: '首页',
        exact: true,
        component: 'Index'
    },
    {
        path: '/report',
        name: '报表列表',
        exact: true,
        routes: [
            {
                title: 'test',
                path: 'transformTest',
                layout: 'BasicLayout',
                component: 'transformReport'
            },
            {
                path: 'info/:parentId/:id',
                name: '报表详情',
                exact: true,
                component: 'reports/bootstrap'
            },
            {
                path: 'preview/:id',
                name: '报表预览',
                layout: 'BlankLayout',
                component: 'reports/index'
            },
            {
                path: 'xingke/:id',
                name: '行课页面',
                layout: 'BasicLayout',
                component: 'xingke/index'
            }
        ]
    },
    {
        path: '/report/info/:parentId/bigScreen/create',
        name: '大屏配置',
        exact: true,
        component: 'ScreenConfig/Config'
    },
    {
        path: '/report/info/:parentId/bigScreen/edit/:id',
        name: '大屏配置',
        exact: true,
        component: 'ScreenConfig/Config'
    },
    // 这个url不要动，已被放出去使用中
    {
        title: '大屏页面',
        path: '/screenPage/:id',
        name: 'screenPage',
        layout: 'BlankLayout',
        component: 'ScreenConfig/ScreenPage'
    },
    {
        title: '性能',
        path: '/perform',
        exact: true,
        routes: [
            {
                title: '性能分析',
                path: 'analysis/:id',
                layout: 'BasicLayout',
                component: 'perform/analysis'
            },
            {
                title: '核心页面首屏时间概览',
                path: 'corePage/:id',
                layout: 'BasicLayout',
                component: 'perform/corePageOverview'
            },
            {
                title: '排行',
                path: 'rank/:id',
                layout: 'BasicLayout',
                component: 'perform/rank'
            },
            {
                title: '用户特征',
                path: 'userFeature/:id',
                layout: 'BasicLayout',
                component: 'perform/userFeatures'
            },
            {
                title: '高途核心页面',
                path: 'gaotuCore/:id',
                layout: 'BasicLayout',
                component: 'perform/gaotuCore'
            }
        ]
    },
    {
        title: '核心页面配置',
        path: '/manage/selfConfig/:id',
        layout: 'BasicLayout',
        exact: true,
        component: 'manage/selfConfig'
    },
    {
        title: '大屏配置',
        path: '/manage/screen',
        exact: true,
        routes: [
            {
                title: '大屏列表',
                path: 'list/:id',
                layout: 'BasicLayout',
                component: 'ScreenConfig/ScreenList'
            },
            {
                title: '创建大屏',
                path: 'create',
                layout: 'BasicLayout',
                component: 'ScreenConfig/Config'
            },
            {
                title: '编辑大屏',
                path: 'edit/:id',
                layout: 'BasicLayout',
                component: 'ScreenConfig/Config'
            }
        ]
    },
    {
        title: '销售成本统计',
        path: '/sales',
        exact: true,
        routes: [
            {
                title: '新建投放',
                path: 'haoke/create',
                layout: 'BasicLayout',
                component: 'sales/haoke/new'
            },
            {
                title: '好课销售成本',
                path: 'haoke/:id',
                layout: 'BasicLayout',
                component: 'sales/haoke',
                exact: true
            },
            {
                title: '编辑投放',
                path: 'haoke/edit/:id',
                layout: 'BasicLayout',
                component: 'sales/haoke/new'
            }
        ]
    },
    {
        title: '续班相关',
        path: 'renew',
        layout: 'BasicLayout',
        routes: [
            {
                path: 'board/:id',
                name: '续班看板',
                exact: true,
                component: 'renew/board'
            }
        ]
    },
    {
        title: '直播监控',
        path: 'liveMonitor',
        layout: 'BasicLayout',
        routes: [
            {
                name: '直播间列表',
                path: 'list',
                exact: true,
                component: 'liveMonitor/list'
            },
            {
                name: '直播间详情',
                path: 'detail/:roomId',
                exact: true,
                component: 'liveMonitor/detail'
            },
            {
                name: '总览',
                path: 'overallTrend',
                exact: true,
                component: 'liveMonitor/overallTrend'
            },
            {
                name: 'webapi',
                path: 'webapi',
                exact: true,
                component: 'liveMonitor/webapi'
            },
            {
                name: 'roomServer',
                path: 'roomServer',
                exact: true,
                component: 'liveMonitor/roomServer'
            },
            {
                name: '流媒体监控',
                path: 'streamingMedia',
                exact: true,
                component: 'liveMonitor/streamingMedia'
            },
        ]
    },
    {
        title: '申请权限页',
        path: '/noAuth',
        name: 'noAuth',
        layout: 'BlankLayout',
        exact: true,
        component: 'NotAuthority'
    },
    {
        title: 'testPage',
        path: '/test',
        name: 'test',
        layout: 'BasicLayout',
        exact: true,
        component: 'TestPage'
    },
    {
        name: 'notFound',
        path: '*',
        layout: 'BlankLayout',
        exact: false,
        component: 'NotFound'
    }
];
